﻿$(function(){
    $('input[type="submit"]').click(function(){
        var data = $("#crt_zibei").serializeArray();
        var arr ={"zibei":"字辈","pinyin":"拼音"};
        if(Te.check2("crt_zibei",arr,"form_tip")) return false;
        return true;
    });
    //父辈加载-自动设置
    $('#parent_no').change(function(){
        var pno = $('#parent_no option:selected').val();
        var pzb = $('#parent_no option:selected').text();
        $('#pzibei').val(pzb);
    });
    //删除确认
    $("#delzb_nav").click(function(){
        var r = confirm("您确定要删除数据吗！");
        return r;
    });
});
var Te = $.TeClan;